<?php
require('./inc/common.php');
$param = getParam($_GET);

$sql = "SELECT *
       FROM  zj_jigou
       WHERE jigou_title LIKE '%".$param['k']."%'
       ORDER BY jigou_id ASC
		LIMIT 15;
	";

$result = mysql_query($sql);
$jigouData = false;
while ($row = mysql_fetch_assoc($result)) {
	
	$jigouData[] = $row;
}
mysql_free_result($result);
if (false != $jigouData) {
	echo '<ul>';
	foreach ($jigouData as $key => $value) {
		echo '<li onclick="javascript:selectCommunity('.$value['jigou_map_lat'].','.$value['jigou_map_lng'].', 1,\''.$value['jigou_title'].'\')"><div class="slabel">'.$value['jigou_title'].'</div><div class="_ca"></div></li>';
	}
	echo '</ul>';
}